package com.qfedu.fy.service.intf;

import com.qfedu.fy.dto.UserLoginDto;
import com.qfedu.fy.entity.Department;
import com.qfedu.fy.entity.User;
import com.qfedu.fy.vo.PageBeanVo;
import com.qfedu.fy.vo.R;

import javax.servlet.http.HttpSession;

/**
 * ......................我佛慈悲......................
 * _oo0oo_
 * o8888888o
 * 88" . "88
 * (| -_- |)
 * 0\  =  /0
 * ___/`---'\___
 * .' \\|     |// '.
 * / \\|||  :  |||// \
 * / _||||| -卍-|||||- \
 * |   | \\\  -  /// |   |
 * | \_|  ''\---/''  |_/ |
 * \  .-\__  '-'  ___/-. /
 * ___'. .'  /--.--\  `. .'___
 * ."" '<  `.___\_<|>_/___.' >' "".
 * | | :  `- \`.;`\ _ /`;.`/ - ` : | |
 * \  \ `_.   \_ __\ /__ _/   .-` /  /
 * =====`-.____`.___ \_____/___.-`___.-'=====
 * `=---='
 * ..............佛祖保佑无BUG..................
 *
 * @author mxj
 * @date 2022/6/16 19:55
 */
public interface UserService {
    R add(User user);

    PageBeanVo selectAll(int page,int limit);

    R update(User user);

    R del(int id);

    /**
     * 登录*/
    R login(UserLoginDto dto, HttpSession session);
    /**
     * */
    R updatePass(String old,String newpassword,HttpSession session);
    R loginOut(HttpSession session);
}
